#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
int main(int argc, const char * argv[]) {
    int a[] = {-5,-3,-3,-2,7,1}, b[] ={-10,-5,3,4,6};
    cout << *max_element(a, a + 6) << endl;
    cout << *min_element(b, b + 5) << endl;
    vector<int> c{-5,-3,-3,-2,7,1}, d{-10,-5,3,4,6};
    cout << *max_element(c.begin(), c.end()) << endl;
    cout << *min_element(d.begin(), d.end()) << endl;
    return 0;
}
